#003-选考难度B-字符串加密-201510-17学考选考
def Code2Char(c):
    s = "IlikeCHNpostcard"
    return s[c]
s = input('输入加密字符串（明文）:')  # 获取明文
if not s:
    print('输入有误，使用默认数据.')
    s = 'This is an example!'
n=len(s)
ss = ""
for ch in s:
    a = ord(ch)
    b1,b2 = divmod(a,16)
    ss = ss + Code2Char(b1) + Code2Char(b2)
print(ss)
